import AbilityBase from 'code/Scripts/Abilities/base/AbilityBase';
/**
 * 医疗
 **/
export default class MSK_Yiliao extends AbilityBase {
    static instance: MSK_Yiliao;
    constructor(id: string = 'Msm1') {
        super(id);
        MSK_Yiliao.instance = this;
        this.init();
        se.onUnitSpellEffect(this.onSpellEffect.bind(this), this.id);
    }
    init() {}
    cast<T extends Object = any>(tarX: number, tarY: number, source: unit, target: unit, data?: T): void {
        DamageSystemInstance.applyHeal(target, source, 3000);
    }
    onSpellEffect() {
        this.cast(GetSpellTargetX(), GetSpellTargetY(), GetTriggerUnit(), GetSpellTargetUnit());
    }
}
